<?php
require_once "./db_config.php";
if(isset($_POST['id'])){
    $id=$_POST['id'];
    $name=$_POST['name'];
    $message=$_POST['message'];
    $date=$_POST['date'];
    $sql="INSERT INTO message(`id`,`name`,`message`,`date`,`status`) VALUE('$id','$name','$message','$date',0)";
    $result=mysqli_query($conn,$sql);
    if($result){
      $message="消息提示成功！";
    }else{
        echo "ERROR!";
    }
}
mysqli_close($conn);
